package com.hxl.dao.impl;

import com.hxl.dao.UserDao;
import lombok.Setter;

@Setter
public class UserDaoImpl implements UserDao{

    private String username;
    private String pwd;
    private String driver;
    private Integer num;
    private boolean flag=false;

    public final void setFlag(boolean flag) {
        this.flag = flag;
    }

    public UserDaoImpl() {
    }

    public UserDaoImpl(String driver, String username, String pwd,Integer num) {
        this.driver = driver;
        this.username = username;
        this.pwd = pwd;
        this.num = num;
    }

    @Override
    public void save(){
        System.out.println("user dao running..."+ username+" "+pwd + " "+ driver+" "+num+flag);
    }
}
